/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ins.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.ins.entity.InsTableUser;
import com.thinkgem.jeesite.modules.ins.dao.InsTableUserDao;

/**
 * 数据表-用户Service
 * @author fanqinglong
 * @version 2017-12-11
 */
@Service
@Transactional(readOnly = true)
public class InsTableUserService extends CrudService<InsTableUserDao, InsTableUser> {

	public InsTableUser get(String id) {
		return super.get(id);
	}
	
	public List<InsTableUser> findList(InsTableUser insTableUser) {
		return super.findList(insTableUser);
	}
	
	public Page<InsTableUser> findPage(Page<InsTableUser> page, InsTableUser insTableUser) {
		return super.findPage(page, insTableUser);
	}
	
	@Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.REQUIRED,readOnly = false, rollbackFor = Exception.class)
	public void save(InsTableUser insTableUser) {
		super.save(insTableUser);
	}
	
	@Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.REQUIRED,readOnly = false, rollbackFor = Exception.class)
	public void delete(InsTableUser insTableUser) {
		super.delete(insTableUser);
	}
	
	public InsTableUser getByTableAndUser(InsTableUser insTableUser){
		return dao.getByTableAndUser(insTableUser);
	}
	
	public List<InsTableUser> findListForAuth(InsTableUser insTableUser){
		return dao.findListForAuth(insTableUser);
	}
}